#include "head.h"

int init_status(statu_t *status,int num){
    status->num = num;
    status->pid = (pthread_t*)malloc(num*sizeof(pthread_t));

    memset(&status->pQueue,0,sizeof(queue_t));

    pthread_mutex_init(&status->lock,NULL);

    pthread_cond_init(&status->cond,NULL);

    status->exit_flags = 0;

    return 0;
}

